Added return statements to two void functions.