Prime Minister Narendra Modi offered prayers at the Shri Vinayaka Temple here on Wednesday to mark the completion of 25 years as head of government and renewed his pledge to serve the country with utmost dedication.