If you want something done right, why not let the Console do it for you?
In this section of the documentation