Don't do this if lastRequest is undefined (e.g. first execution)