STILL NOT FULLY FUNCTIONAL!

Added some logging statements.