Fixed script to include status