Added size changing functionality.