Generating URL instead of hardcoding it. Added some documentation.