Use more concise, clear code, thx @cadwallion.