Added used key checking, and send mechanism