Missing 'end' corrected in service