Tested to make sure code worked properly