Creating the asyncAdd function using the setTimeout object