Last Working Version. With portal Max Size