Add logic for ago functions