Added logging helper