Fixed code formatting and separated instructions