Added support for setting up keys that are tied to a remote resource