Use fixed MPI work-chunk size.
Move utility functions to util module.