This method was recently removed, so this code should be reworked.