Added [release] for allocated objects. There are still memory issues...