File changes + new terrain function