Second commit, fixed some stuff + implemented run.