Basic logging statement added, cleaned up message boxes.