Add crypto and fix function call