Added 'Unknown' and 'Error' as acceptable arguments for 'status' switch