Removed the two seperate function calls in the java side. No longer necessary.