Fixed mid value issue and removed from class.