Added input system (which is not working properly right now).