Getting UID working. Added functions for last and standard api