Added crossdomain factory