Added some comments and better unsafe mechanics