Stack structure completed. Yet to be fully tested.