New functions usage and panic for error handling