Fixed parameter parse and added logging to /tmp/log log file