Modified the parameters and Logging exception