Re-added getAgent
Re-added getAgent method