Stack functionality complete