What he said.  Might be worth noting that the code below should be set in an initializer.