Removed unsed vars TMP from getmet