Add preliminary implementation of (de)init