Test-version (working, but buggy)