Only perform necessary work