Small edits to code