Add method in module without class support and better error log