"window" is redundant, so remove it. Also remove the original window argument to improve the API consistency.