Why dont you make a seprate thread