Added new functionality to spatial class