Added enum to identify command type