Changed code to reflect changed purpose