Issue #113: Modified the select statement used to fetch the last completed module.