Small code optimization