Revised the daemon to process 3 REMARK lines