Adding pending function