Reimplemented the internal frame to take relative coordinates instead of absolute ones.