Adjusted to keep lcdwidth declaration in main only