Added support for a realease function to eliminate the context blocks used