Add type hinting. Remove livecyclecalbacks