Implementation of the bail-in tool