Working Logger and print functions