Reduce number of lines used in code