Shorten code to pass testing.