Replaced check for linked API with explicit passing of API object