Added method for getting parameters.