Computing Long Term Sequence and Planning