Init with configs