Now it makes http request only when needed