Spereated the major parts, it can work, but the inline and remember
position is not working, also the code need tuning.