Logging and a fix since one of the natives is deprecated