Changed method name to enable automatic logging