Added method to deal with params.