Added functions to towerdef namespace