Adding pre_exec functions + subcommands ordering