Backend implementation of all-off function