Change maxBlock/iteration to be argument
Maxblock as argument
maxblock as argumnet