Perform mode

It’s now in the library, maybe it will be useful to someone looking at this thread!