Added a monitor command with daemonizing