Got local functions working, implemented comments.