Fleshed out service allowing for periodic callbacks with locking.