Background tasks

WIP

See #15