Corrects some function formatting