Various improvements and refinements including a logging system. Remember to lock it before using! Preferably with LoggerLock.