Changed it to a different version that's more in line with how Qt C++ does it