Fixed bugs. Need to make more stable. though.