Improved code at cary