Logic for 'active' tasks