Added another if statement to add members