Added Resize implementation, needs testing