Tested and added resize functionality.