Formatting move and event into functions