Removed an extraneous 'end'