Make get function work