Somewhat working tick implementation.