fixed #48. changed parameter to max_milliseconds