Added some major improvements to the BinaryFunctions file