Extract contstants and functions