This function is specific to the bwwc application, but could be refactored some more to be reused later.
This function is specific to the bwwc application, but could be refactored some more to be reused later.