Added stephens code