Added a function for determining if approved.