Very basic implementation of terrain framework