Merged the two for-loops into one. Added Bitbucket support for importing owned projects.