Fixed some errors and silenced some logs