Made it slightly more compatible with QPython