Prototype of Interface and fixed several bugs