Got some basic functions working.
Improved rolling function.