Added timer function to splash screen