Refactored matlab script.