Modified window to accept arguments as a hash