Added argument on fork method to specify window.