Refactored code, now includes modified board file.