Added class methods for logging and debugging