Added functional balance hypothesis into code