'Almost' compilable version :)

Strange problem with sin and cos functions in new module :/