Build status in function