Only run if window actually exists :/