Changed initShape() and initParams() to initialize()