Added jake's code.