Fix IF statement to allow for unlimited stamps