The entire function was basically replaced by this one line