Moved constants from constructor to prototype