Ran trials and fixed code.