Removing unnecesary console print lines