Changed the Matlab class to a handle.