Tested three functions against each other