Removed duplicate code and replaced with link