Modified to work as the others (receives size and accuracy with input parameters etc)