Moved function into right file
Layed out validateResizeRequest
Did performance tests