Will revisit this in the future with a more sound algorithm.
Also some reorganisation of file content for legibility