Fixed some more issues. Calling replication functions.