Changed the logging

Updated to use the default logging instead of write to the host.