Added beginnings of resize functionality