Added pattern types and added rust-crypto to dependencies