Work in progress. Throws InvalidHandle