Finished implementation of drop operation.