Added a performance test and improved performance. Bumped to version 0.4