Started implementing main