Changed hash allocation, and harcoded limit of mailboxes