Handling active, background and inactive states separately.