Refactored getSites(). Reformatted comments.