Replace static sleep with swing-Timer