Made some code formatting procedure