Added Size Check Functionality