This wasnt part of the code i worked on, it was just a copy/paste to a function.