Try to not repeat myself in code