Removed function which might produce wrong output.