Commented the method to my madness