Added new functions to simplify the code
Added function to retrieve hetero value