Improved validation of params to be more efficient
v0.1.2 - better operation validation