Create functions

Starting translation.
Not fully finished.