Fixed Ellery's code