Added timer and submission functionality