Added more functions. need to check mem functions