Correcting function formatting