build_app function changes.