Added back button pressing logic, fixing parameter collapsing