Removed unnecessary reverse().