Adding function for calculating local elevation and use it on Tank