Removed static variables

Static variables are not allowed in threads, only jvm as they share
data!