Improvement in parameters reading

Thanks to Naparuba ;-)