New determine height function + related tests