Add methods for logging