New routines for build and gpu mod added