Added some debug logging and starting to add coverage module.