First steps to adding a paramater to functions.
Add state argumetn to function calls.
Add prelude to entry function.