Refactor the Inline module