NF: Added floordiv to ref
NF: Only create window at runtime and then clean it up.