Add feature checking for push state at the beginning of the script