Extension of G30 for profile scanning