Making code more compact