Removed memcpy, made basic stuffs