Changed function contents to a set