Reduce some code