Added Clear console guard