Resizing done in java now