Reducing amount of code for same results.