Made the module OOP. Goal is to use it in GUI.