WIP on frame based logic.