Main functions added

But they don't actually function at all