Added functions for repeated resizes