Added error checking for undefined continuities