Some changes to get function, semi-working.