added last signatures, and made some changes to support them.