Fix functions formatting