Added more stuff

The algorithm to check if the plane is in the OBS range was pretty
challenging to figure out. If you find a better method please change it.