Cleaned up utils.nim file, more info in description below.