Added in Vermie's code.