Added parameter to initialize, added debugging statements.