Circular logic error removed. Will have to figure this out later.