Fixed some memory leaks. Added roll command.