Additon of logging methods and decorator