Use enums instead of pure integers for read finalizer function