Reordered subroutines for better code readability.
Moved status area update code to setStatusText subroutine.