Added logging commands and fixed coverage