Added validation for the request parameters
Fixed an error which occured when sending parameters and not using encryption
Added the possibility of using optional function parameters