Enhanced splashscreen function