I believe I copied an old version of the getSites method just above