Use context manager to register custom frame identifiers