Simplified checks for gridmap, and potentially solved an issue with daemonic processes.