Example of writing background workers