Removed semicolons from end statements