Amending to check pending detail