Use IPC_COMMAND macro for command type specfication and use g_message instead of g_debug