Completed getTags(), needs testing