Updated to use sequence