Built the core infrastructure and implemented some UI reactions.