Cleaned up video controller.