Just a solution to a silly question on StackOverflow