* Added some pragmas
* Fixed reduce function