Add function to simplify declaration of pieces