Create metod for internal logging