Add common function epilogue