Fix to store elevation in local test
Changes to elevation calculation