Fixed accidently deleted function.