This should be done at the class level, not inside initialize. See other Applications for examples.