Setting up variables for highest underline relationship calculations

This might help…