Added list_params feature and refactored