Make cmd_writer static instead of global
Remove fifo modparam