Overloaded the execute method.