Better (stolen) solution