Fixed func logging and implemented Qt handler.