Moved the trace part to it's own function, started implementation
of the camera.