Updated to check for pyside