Merged mine and Saishav's helper