Began to implement and test replace button functionality.