Added basic timer and input functions