Fixed resize and added pause and resume