Improved execute() method