Altered model to prevent duplicate entries