Updated to work with Firefox positional tracking.