Added a minor extra safeguard for in case of malfunctioning function generators