Removed unnecessary code from utils.