Implemented a partially functioning entropy maximiser