Initial styles and logic cleanup.