Added initialization stage for parameters to work