Move chain into module