Updated do_direct_input style for clarity