Converted odl_status function to use echo instead of return