Cleaning up boss code.