Only perform tasks if needed