Another hack with static variable.