Added some logics, changed some stuff.