Using application instead of state