Added speed and actions.

Some funky stuff may happen after this commit. Also, time for optimization and stuff