Add bin setting
Change some interfaces