Added code to get gender