Alter prefix to check that window is a window and require exists