Modifed Alter.js for testing