Improved readability and using curl options array.