Control of pump parameters to improve safety thereof