Added randomPosition to resolverFactory