Code quality pass