Made correction... Earlier incorrect value was getting returned. Fixed it.