Added constructor for compiling with initial values