Remove unnecessary inputs and prints