Refactor in voice mechanism and added crypto. needs testing.