Removed an extra 'end'