Added validation for a, b parameters.