Removed unnecessary try-catch and implemented position, among other things.