Added http exception handling & more.