Added logs and argv testing to script.