Add proper logging functions.