Rewrite of rover.py