Updating script to print seconds instead of minutes and return standard error codes.