Fixed some small issues; it now runs successfully!