Added code for testing to console out.