Fix function for software prototype.