Update logic with build status calculation.
Move Error message from template.Do immage smaller.