Implement the Parse function