Moved signal calculation to Terrain class, as it fits better there