Implemented general lifecycle

Nothing tested yet