Added function name in debug logs