Cleanup inputs