Fixed 0-1 function.