I've tried to think of everything. Sir James smiled.
Sir James was smiling when he tried to think of everything.