Updated the serializable closure class