Troubleshooting dose factor function