Add deploy function.