Changed global window variable due to conflict.