Logical error. Thanks James.