A contractor carrying out refurbishment and basement extension work was prosecuted after the Health and Safety Executive (HSE) identified a series of serious safety breaches during inspections.